]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionUtils: Load user extensions before system extensions
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 6 Apr 2012 18:02:23 +0000 (14:02 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 9 Apr 2012 17:02:31 +0000 (14:02 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=673613

js/misc/extensionUtils.js

index 1697c460934de20f23fd008d5f8fa66247cf4eee..7dcf166de7a937ee33a3f6d91e080747b076c3c7 100644 (file)
@@ -184,11 +184,11 @@ function scanExtensionsInDirectory(callback, dir, type) {
 
 function scanExtensions(callback) {
     let systemDataDirs = GLib.get_system_data_dirs();
+    scanExtensionsInDirectory(callback, userExtensionsDir, ExtensionType.PER_USER);
     for (let i = 0; i < systemDataDirs.length; i++) {
         let dirPath = GLib.build_filenamev([systemDataDirs[i], 'gnome-shell', 'extensions']);
         let dir = Gio.file_new_for_path(dirPath);
         if (dir.query_exists(null))
             scanExtensionsInDirectory(callback, dir, ExtensionType.SYSTEM);
     }
-    scanExtensionsInDirectory(callback, userExtensionsDir, ExtensionType.PER_USER);
 }